<template>
  <div>
    <el-tag v-if="visiableMenu" type="success">可见</el-tag>
    <el-tag v-else type="info">不可见</el-tag>
  </div>
</template>
<script>
export default {
  name: 'MenuVisiable',
  props: {
    visiable: {
      type: String,
      required: true
    }
  },
  computed: {
    visiableMenu() {
      return this.visiable === 'Y'
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
